package com.silverbox.shopper.mapper;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.DiningArea;

public interface DiningAreaMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DiningArea record);

    int insertSelective(DiningArea record);

    DiningArea selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DiningArea record);

    int updateByPrimaryKeyWithBLOBs(DiningArea record);

    int updateByPrimaryKey(DiningArea record);
    
    DiningArea getDiningAreaById(Integer Id);
    
    DiningArea getDiningAreaByUid(String uid);
    
    /**
     * 获取店铺桌台信息（根据店铺桌台名称获取）
     * @param tableName
     * @param storeId
     * @return
     */
    DiningArea getDiningAreaByTableName(@Param("tableName")String tableName,@Param("storeId")Integer storeId);
}